package com.ruoyi.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.system.domain.ProCreateBuilding;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 实际用料对象 actual_material
 * 
 * @author ruoyi
 * @date 2020-07-22
 */
public class ActualMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    public ProCreateBuilding getProCreateBuilding() {
        return proCreateBuilding;
    }

    public void setProCreateBuilding(ProCreateBuilding proCreateBuilding) {
        this.proCreateBuilding = proCreateBuilding;
    }

    @Excels({
            @Excel(name = "项目名称", targetAttr = "pName", type = Excel.Type.EXPORT),
            @Excel(name="创建时间",targetAttr = "pTime" ,type = Excel.Type.EXPORT),
            @Excel(name="项目经理",targetAttr = "pFounder",type = Excel.Type.EXPORT)
    })
    private ProCreateBuilding proCreateBuilding;

    /** 实际用料id */
    private Long cPid;

    /** 材料名称 */
    @Excel(name = "材料名称")
    private String cPname;

    /** 材料数量 */
    @Excel(name = "材料数量")
    private Long cPnum;

    /** 外键id */
   // @Excel(name = "外键id")
    private Long cCid;

    public void setcPid(Long cPid) 
    {
        this.cPid = cPid;
    }

    public Long getcPid() 
    {
        return cPid;
    }
    public void setcPname(String cPname) 
    {
        this.cPname = cPname;
    }

    public String getcPname() 
    {
        return cPname;
    }
    public void setcPnum(Long cPnum) 
    {
        this.cPnum = cPnum;
    }

    public Long getcPnum() 
    {
        return cPnum;
    }
    public void setcCid(Long cCid) 
    {
        this.cCid = cCid;
    }

    public Long getcCid() 
    {
        return cCid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cPid", getcPid())
            .append("cPname", getcPname())
            .append("cPnum", getcPnum())
            .append("cCid", getcCid())
                .append("proCreateBuilding",getProCreateBuilding())
            .toString();
    }
}
